We are checking for allocation != NULL at the beginning of the function
already. This also means that the allocation parameter is not nullable.
/**
* gtk_widget_get_allocated_size:
* @widget: a #GtkWidget
- * @allocation: (out) (allow-none): a pointer to a #GtkAllocation to copy to
+ * @allocation: (out): a pointer to a #GtkAllocation to copy to
* @baseline: (out) (allow-none): a pointer to an integer to copy to
*
* Retrieves the widget’s allocated size.
priv = widget->priv;
- if (allocation)
- *allocation = priv->allocated_size;
+ *allocation = priv->allocated_size;
+
if (baseline)
*baseline = priv->allocated_size_baseline;
}